package action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.heantai.easystruts.controller.Action;
import com.heantai.easystruts.form.ActionForm;

public class LogoutAction extends Action {

	@Override
	public String execute(ActionForm actionForm,HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		HttpSession session=request.getSession();
		session.invalidate();
		return "login";
	}

}
